const dayjs = require("dayjs")
const mongoose = require("../../db/db")

/**@description 代码生成 配置表模型 */
const Schema = mongoose.Schema({
    id: {
        type: String,
    },
    createDate: {
        type: Number,
        require: true
    },

    title: {
        type: String,
        require: true,
    },
    remark: {
        type: String,
    },
    //模型配置
    modelData: {
        type: Array,
        require: true,
    },
    componentName: { //组件名称
        type: String,
        require: true
    },
    tableName: {  //表名
        type: String,
        require: true
    }
}, {
    versionKey: false //禁用版本号 
})


const model = mongoose.model("development_tab_codeGengeration", Schema)
module.exports = model

